From 19bfcf5a4e7d8e6936bb7914bb0beabbf690ac25 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 26 Aug 2003 19:58:08 +0000 Subject: [PATCH] Strip field separators (colons) out of tiger output. --- gpsbabel/tiger.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gpsbabel/tiger.c b/gpsbabel/tiger.c index 4a97d4c08..781b910f3 100644 --- a/gpsbabel/tiger.c +++ b/gpsbabel/tiger.c @@ -21,6 +21,7 @@ #include "defs.h" #include "magellan.h" +#include "csv_util.h" static FILE *file_in; static FILE *file_out; @@ -126,6 +127,7 @@ tiger_disp(const waypoint *wpt) char *pin; double lat = wpt->position.latitude.degrees; double lon = wpt->position.longitude.degrees; + if (wpt->creation_time > time(0) - 3600 * 24 * 14) pin = "greenpin"; else @@ -143,7 +145,9 @@ tiger_disp(const waypoint *wpt) fprintf(file_out, "%f,%f:%s", lon, lat, pin); if (!nolabels) { - fprintf(file_out, ":%s", wpt->description); + char *desc = csv_stringclean(wpt->description, ":"); + fprintf(file_out, ":%s", desc); + xfree(desc); } fprintf(file_out, "\n"); } -- 2.30.2